<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal" id="form" method="post" action="{:U('update')}">
							<input type="hidden" name="id" value="{$vo['id']}"/>
							<input type="hidden" name="p" value="{$p}"/>
							<input type="hidden" name="sh_status" value="{$sh_status}"/>
                            <!-- PAGE CONTENT BEGINS -->
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    任务名称： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.title}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    任务价格： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.price}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    用户手机： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.username}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    接单时间： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.t|date='Y-m-d H:i:s',###}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    任务备注： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.remark}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    任务图片： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                	<notempty name="pics">	
                                    <foreach name="pics" item="pic">
                                    	<img src="{$pic}" width="300" height="520"/>
                                    </foreach>
                                    </notempty>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    所属媒体： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.cate_name}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    会员等级： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.level_info}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    任务要求： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.money_info}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    发布人： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.author}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    状态： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	<if condition="$vo['status'] eq 0">待完成</if>
                                    	<if condition="$vo['status'] eq 1">待审核</if>
                                    	<if condition="$vo['status'] eq 2">已完成</if>
                                    	<if condition="$vo['status'] eq 4">已取消</if>
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <if condition="$vo['status'] eq 1">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    状态审核： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <select id="status" name="status" class="col-xs-10 col-sm-5"> 
                                      <option value="2">已完成</option>
                                      <option value="4">已取消</option>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
							<div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">
                                    审核备注 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="sh_remark" id="sh_remark" placeholder="审核备注"
                                           class="col-xs-10 col-sm-5">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <else/>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    审核备注： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.sh_remark}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            </if>
                            <div class="col-md-9" style="padding-left:5%">
                                <if condition="$vo['status'] eq 1">
                                <button class="btn btn-info submit" type="button">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                </if>
                                <button class="btn" type="button" onclick="history.back(0)">
                                    <i class="icon-undo bigger-110"></i>
                                    返回
                                </button>
                            </div>

                            <!-- PAGE CONTENT ENDS -->


                        </form>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
$(function () {
    $("#tabs").tabs();
    $(".submit").click(function () {
    	var st = "{$vo['status']}";
    	if(st == 1){
    		$("#form").submit();	
    	}
    });
});    
</script>
</body>
</html>
